package com.ktjy.mapper;

import com.ktjy.pojo.StorageRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface StorageRecordMapper {
    public List<StorageRecord> getRecords(@Param("goodsName") String goodsName,@Param("supplierId") Integer supplierId,@Param("payStatus") Integer payStatus);

    public List<StorageRecord> getRecordsListWithSupName(StorageRecord storageRecord);

    public List<StorageRecord> getRecordsListBySupplierId();

    public List<StorageRecord> getRecordsListSupplier();

    //第四章实战
    public List<StorageRecord> getStorageRecordsListByIf(@Param("supplierId") Integer supplierId, @Param("payStatus") Integer payStatus, @Param("goodsName") String goodsName);
    public List<StorageRecord> getStorageRecordsListByForeach(Integer[] id);
    public List<StorageRecord> getStorageRecordsListByForeachList(List<Integer> id);
    public List<StorageRecord> getRecordsListByMap(Map<String, Object> recordMap);

    public List<StorageRecord> getRecordsListByPage(@Param("pageBegin") Integer pageBegin, @Param("pageSize") Integer pageSize);
}